<?php
namespace app\api\controller;
use think\Controller;

class Column extends Controller
{
    public function index() 
    {
        $data = db('column')->where('isshow',1)->select();
        if ($data) {
            return ['code'=>200,'message'=>'获取成功','data'=>$data];
        }else{
            return ['code'=>400,'message'=>'获取失败','data'=>$data];
        }

    }

}